{include file="header"}
<div class="x-body">
	<xblock>
		<a href="javascript:location.reload();" class="layui-btn layui-btn-warm">
			<i class="icon iconfont"></i> 刷新
		</a>
		<span class="x-right" style="line-height:40px">共有数据：{:fun_st('yanzhengma',array())} 条</span>
	</xblock>
	<div style="overflow: auto;">
        <table class="layui-table" style="min-width: 1000px;">
		<thead>
			<tr>
				<th>ID</th>
				<th>内容</th>
				<th>接收号码</th>
				<th>IP</th>
				<th>用途</th>
				<th>发送时间</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			{volist name=":fun_s('yanzhengma',array(),'id desc','20,false',0)" id="vo"}
			<tr>
				<td>{$vo.id}</td>
				<td><textarea class="layui-textarea">{$vo.content}</textarea></td>
				<td>
					{if condition="socha(user('tid'),'99') eq '1'"}
					{$vo.phone}{$vo.mail}
					{else/}
					并无权限查看
					{/if}
				</td>
				<td>{$vo.ip}</td>
				<td>
					{if $vo.fl==1}注册{/if}
					{if $vo.fl==2}找回密码{/if}
					{if $vo.fl==3}更换账号{/if}
					{if $vo.fl==4}其他{/if}
				</td>
				<td>{$vo.time|times}</td>
				<td id="admin_set">
					<a class="layui-btn layui-btn-sm layui-btn-danger del_t" url="{:url('admin/api/catedelete')}?model=yanzhengma&id={$vo.id}" name="确定要删除这条记录吗？">
						<i class="layui-icon"></i>删除
					</a>
				</td>
			</tr>
			{/volist}
		</tbody>
	</table>
	</div>
	<div class="page">
		{:fun_s('yanzhengma',array(),'id desc','20,false',0)->render()}
	</div>
</div>
{include file="footer"}